<?

require_once ("application.list.inc");

global $_GLOBAL_DBH;
global $_OBJECT_IFACE_PANEL;

$fs_local_document = $_SERVER["PHP_SELF"];

$lc_eve_man_types = array (
	name=>array (label=>"Name",order=>"DEFAULT",wrapper=>"vmc_icon_type"),
	description=>array (label=>"Description",order=>"DEFAULT",
			callback=>"_template_list_substring",length=>16),
	cdate=>array (label=>"Create Date",order=>"DEFAULT",wrapper=>"vmc_icon_date"),
);

$link_options_path = array (
	array (
		fs_tab=>"eve_man_types",
		fs_tab_option=>"lc_eve_man_types"
	)
);

$link_options = _app_create_tabbing (null, $link_options_path);

$object_ctl_path = array (
	array (
		fs_action=>"view",
		fs_tab=>"eve_man_types",
		fs_tab_option=>"fs_eve_man_types",
	)
);

$object_ctl .= _app_create_tabbing ( "{$fs_local_document}?",
		$object_ctl_path) . "&";

$list_options_path = array (
	array (
		fs_action=>"addnew",
		fs_tab=>"eve_man_types",
		fs_tab_option=>"fs_eve_man_types",
	)
);

$list_options = array (
	array (
		label=>"Add A Type",
		link=>_app_create_tabbing ("{$fs_local_document}?", $list_options_path)
	),
);

$_OBJECT_IFACE_LIST = _app_create_list_object (array (
                db_conn=>$_GLOBAL_DBH,
                indexes=>$lc_eve_man_types,
		list_count=>"SELECT COUNT(*) FROM eve_man_types",
		list_select=>"SELECT * FROM eve_man_types",
                list_id=>"lc_eve_man_types",
                list_options=>$list_options,
                primary_key=>"id",
                primary_relation=>"type_id",
                link_options=>$link_options,
                object_ctl=>$object_ctl
));

$_OBJECT_IFACE_TABBING_PANEL->insert_container ($_OBJECT_IFACE_LIST);

?>
